package com.blog;

/*
 * Enmu type
 */

public class day04Enmu {
	public static void main(String[] args) {
		day04Enmu d = new day04Enmu();
		d.getValues();
	}

	public String getChianeseSeason(SeasonEnum season) {
		StringBuffer result = new StringBuffer();
		switch (season) {
		case SPRING:
			result.append("[中文: 春天" + season.name() + "常量: " + season.getCode()
					+ "],");
			break;
		case SUMMER:
			result.append("[中文: 夏天" + season.name() + "常量: " + season.getCode()
					+ "]");
			break;
		default:
			result.append("没有");
			break;
		}
		return result.toString();
	}
	public void doSomeThing() {
		for(SeasonEnum s: SeasonEnum.values()){
			System.out.println(getChianeseSeason(s));
		}
	}
	public void getValues() {
		for(SeasonEnum s: SeasonEnum.values()){
			System.out.println(s);
		}
	}
}
